@model OurWedding1.Models.GuestInExpense
@using OurWedding1
@* This partial view defines form fields that will appear when creating and editing entities *@

<div class="editor-label">
    @Html.LabelFor(model => model.Guest)
</div>
<div class="editor-field">
    @Html.DropDownListFor(model => model.GuestId, ((IEnumerable<OurWedding1.Models.Guest>)ViewBag.PossibleGuests).Select(option => new SelectListItem
{
    Text = (option == null ? Resources.None : option.Name),
    Value = option.GuestId.ToString(),
    Selected = (Model != null) && (option.GuestId == Model.GuestId)
}), Resources.Choose)
    @Html.ValidationMessageFor(model => model.GuestId)
</div>

<div class="editor-label">
    @Html.LabelFor(model => model.Discount)
</div>
<div class="editor-field">
    <div id="amountPr"></div>
    <div id="slider" style="width: 260px"></div>
    @Html.HiddenFor(model => model.Discount)
    @Html.ValidationMessageFor(model => model.Discount)   
</div>

<div class="editor-label">
    @Html.LabelFor(model => model.Comment)
</div>
<div class="editor-field">
    @Html.EditorFor(model => model.Comment)
    @Html.ValidationMessageFor(model => model.Comment)
</div>



@Html.HiddenFor(model=>model.ExpenseId)
